﻿using System;
using LiteDB;

namespace DevelopTool.Model
{
    /// <summary>
    /// 实体基类
    /// </summary>
    [Serializable]
    public class BaseModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [BsonId(true)]
        public int Id { get; set; }


        /// <summary>
        /// 创建时间（默认当前时间）
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;


        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; } = DateTime.Now;


        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }
}
